package com.example.juc.controller;

/**
 * @author jl
 * @since 2021/10/8 18:33
 */
public class SingletonDemo {

    private SingletonDemo() {
    }

    private static class SingletonDemoHandler {
        private static SingletonDemo instance = new SingletonDemo();
    }

    public static SingletonDemo getInstance() {
        return SingletonDemoHandler.instance;
    }

}
